exports.changeDate = date => {
  
  if(!date){
    return new Date();
  } else {    
    if(!isNaN(date)){
       date = +date; 
    }
    date = new Date(date);
    
    if(!date.toString().toLowerCase().indexOf("invalid")){
      return {error: date.toString()};
    }
    return {"unix": date.getTime(), "utc" : date.toUTCString()};
  }
};